<!DOCTYPE html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
    <meta charset="utf-8">
    <title>{% block title %}{% endblock %}{{site_options.title}}</title>
    <meta name="baidu-site-verification" content="FGI4ULm87e" />
    <meta name="renderer" content="webkit" />
    <meta name="keywords" content="{% block keywords %}{% endblock %}" />
    <meta name="description" content="{% block description %}{% endblock %}" />
    <meta property="wb:webmaster" content="600d75db784178a2" />
    <link rel="shortcut icon" type="image/x-icon" href="http://s.lovewith.me/static/images/favicon.ico" />
    <link rel="alternate" type="application/rss+xml" title="婚礼时光RSS Feed" href="{{domain}}share/rss.xml" />
    <link rel="stylesheet" type="text/css" href="http://s.lovewith.me/static/css/??reset.css,common.css,shareto.css{% block css %}{% endblock %}?t=205615" />
    <script src="http://s.lovewith.me/static/js/??lib/sea.js,lib/seajs-combo.js,sea.config.js,lib/arale.js,lib/jquery.js?t=205615"></script>
</head>
<body class="{% block pagetype %}{% endblock %}" data-focussign="{% block focussign %}{% endblock %}">
    <div class="ui-a logo"></div>
    <div class="ui site-top" id="site-top">
        <div class="layout">
            <a class="ui st-logo" href="{{domain}}" title="婚礼时光">婚礼时光</a>
            <div class="st-drop st-cate" id="st-cate">
                <span class="ui-a st-drop-title">婚礼类目</span>
                <div class="st-dbox">
                </div>
            </div>
            <a class="stop-item" href="{{domain}}share/goods/all/">新娘商店</a>
            <a class="stop-item stop-item-new" href="{{domain}}su/list/all/">找服务</a>
            <a class="stop-item" href="http://card.lovewith.me/" target="_blank">电子请柬</a>
            <div class="st-search" id="user-guide-search">
                <dl>
                    <dt class="ui-a">&nbsp;</dt>
                    <dd>
                        <ul>
                            <li data-type="keyword">标题</li>
                            <li data-type="tag">标签</li>
                        </ul>
                    </dd>
                </dl>
                <form action="javascript:;">
                    <input id="searchType" type="hidden" name="type" value="{% if search_type == 'tag' %}tag{%else%}keyword{%endif%}" />
                    <input class="inp-text" type="text" value="{% if search_type =='color' %}{{color_data.name}}{% else %}{{search_key}}{% endif %}"  name="keyword" placeholder="查找婚礼灵感">
                    <input class="ui inp-btn" type="button" value=" " />
                </form>
            </div>
            <div class="st-user" id="user-guide-user">
                {% if user.is_authenticated() %}
                    <div class="st-drop st-post">
                        <span class="st-drop-title"><a class="inp-btn-pk" href="{{domain}}share/post/image/">发布</a></span>
                        <div class="st-dbox">
                            <ul class="st-dbmain">  
                                <li><a href="{{domain}}share/post/image/">发图片</a></li>
                                <li><a href="{{domain}}share/post/video/">发视频</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="st-drop st-u-info" id="st-u-info">
                        {% if user.group_id ==3 %}
                            <a class="ui-a st-drop-title" id="user-guide-nav" title="{{user}}" href="{{domain}}su/{{user.id}}/">
                        {% else %}
                            <a class="ui-a st-drop-title" id="user-guide-nav" title="{{user}}" href="{{domain}}u/subscribe/all/">
                        {% endif %}
                            <img class="avatar" alt="{{user}}" src="{{user.avatar}}!50" width="32" />{{user.username|safe|cut_str(8)}}</a>
                        <div class="st-dbox">
                            <ul class="st-dbmain">  
                                {% if user.group_id ==3 %}
                                    <li><a class="ui-a st-u-home" href="{{domain}}su/{{user.id}}/">商家主页</a></li>
                                {% else %}
                                    <li><a class="ui-a st-u-home" href="{{domain}}u/{{user.id}}/">个人空间</a></li>
                                {% endif %}
                                <li><a class="ui-a st-u-like" href="{{domain}}u/{{user.id}}/like/">我的喜欢</a></li>
                                <li><a class="ui-a st-u-crumb" href="{{domain}}u/{{user.id}}/album/all/">我的灵感板</a></li>
                                <li><a class="ui-a st-u-card" href="http://card.lovewith.me/setting/">我的请柬</a></li>
                                <li><a class="ui-a st-u-ask" href="http://ask.lovewith.me/">我的问答</a></li>
                                <li><a class="ui-a st-u-msg" href="{{domain}}u/message/">我的消息</a></li>
                                <li><a class="ui-a st-u-set" href="{{domain}}u/setting/info/">设置</a></li>
                                <li><a class="ui-a st-u-exit" href="{{domain}}u/sign_out/">退出</a></li>
                            </ul>
                        </div>
                    </div>
                {% else %}
                    <a class="st-sign" href="{{domain}}u/sign">登录</a>
                    <a class="st-join" href="{{domain}}u/join">注册</a>
                {% endif %}
            </div>
        </div>
    </div>

    {% block main %}
	{% endblock %}
    
    <input type="hidden" id="csrf" name="csrfmiddlewaretoken" value="{{csrf_token}}" />
    <div class="footer">
        <div class="clearfixed layout">
            <div class="ui-a ft-copy">©COPYRIght 2014 lovewith.me<br />婚礼时光 杭州爱点米网络科技有限公司<br />浙ICP备:12036459号-1</div>
            <ul class="ft-about">
                <li><a target="_blank" href="{{domain}}site/about/">关于我们</a></li>
                <li><a target="_blank" href="{{domain}}site/contact/">联系我们</a></li>
                <li><a target="_blank" href="{{domain}}site/sitemap/">网站地图</a></li>
                <li><a target="_blank" href="http://www.lagou.com/c/2486.html" rel="nofollow">加入我们</a></li>
                <li><a target="_blank" href="{{domain}}site/help/">使用帮助</a></li>
                <li><a target="_blank" href="{{domain}}site/collection/">采集工具</a></li>
                <li><a target="_blank" href="{{domain}}su/list/all/">婚礼服务商</a></li>
            </ul>
            <div class="ft-link">
                <div class="ft-title"><a target="_blank" href="{{domain}}site/link/">友情连接</a></div>
                {% for link in links %}
                    <a target="_blank" href="{{link.url}}">{{link.name}}</a>
                {% endfor %}
            </div>
            <div class="ft-follow">
                <div class="ft-title">关注我们</div>
                <div class="dss-box sto-box">
                    <span class="sto-wx">
                        <a href="{{domain}}share/detail/all/27761/">QQ微信</a>
                    </span>
                    <span class="sto-tsina">
                        <a href="http://e.weibo.com/lovewith99" target="_blank">新浪微博</a>
                    </span>
                    <span class="sto-tqq">
                        <a href="http://t.qq.com/lovewith-me" target="_blank">腾讯微博</a>
                    </span>
                    <span class="sto-rrzhan">
                        <a href="http://zhan.renren.com/lovewith/" target="_blank">人人小站</a>
                    </span>
                    <span class="sto-douban">
                        <a href="http://site.douban.com/187045/" target="_blank">豆瓣</a>
                    </span>
                </div>
            </div>
        </div>
    </div>
    <script>var siteConfig = {authWb: '{{weibo_auth_uri}}',authQq: '{{qq_auth_uri}}'{% if user.is_authenticated() %},user: {id: {{user.id}},name: '{{user.username}}',avatar: '{{user.avatar}}!50',editor: {%if is_admin%}true{%else%}false{%endif%},subKeywords: [{%for k in sub_keywords%}'{{k.keyword}}'{%if not loop.last%},{%endif%}{%endfor%}]}{%endif%}};</script>
    <script>seajs.use('modules/head', function(h){h.render()});</script>
    {% block script %}{% endblock %}
    {% if not debug %}
    <script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F272a7b3a299f7ac648a2c34d55d98cf1' type='text/javascript'%3E%3C/script%3E"));
</script>

    <script>(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create","UA-50652587-1","lovewith.me");ga('require','linkid','linkid.js');ga('require','displayfeatures');ga("send","pageview");</script>
    {% endif %}
</body>
</html>